// 新版--总量单车卡
var numberFormate = iot.getNumberFormat("0.00");
var energyDevId = {
    "collectChart": 10336,
    "costPools": 10325,
    "aggregateWaters": 10315,
    "aggregateElectricitys": 10301,
    "aggregateGass": 10308,
    "summarySteams": 10322,
    "aggregateCoolings": 10283,
    "airCollectionss": 10291
};

dev.action = function(resp,param){
    
    var workSpaceId = iot.getEnergySpaceId(param.workSpaceName, param.name);
    var param= {
        id:energyDevId[param.name],
        time:param.time,
        selectType:param.selectType,
        workSpace:workSpaceId,
        workSpaceName: param.workSpaceName
    }
    var jsData = iot.bridgeOtherJsResult(JSON.stringify(param));


    var total = jsData.jsData[0].useNum
    jsData.jsData[0].useNum = decimalRetainRule(total)

    var single = jsData.jsData[1].useNum
    jsData.jsData[1].useNum = decimalRetainRule(single)


    resp.setJsData(jsData.jsData);
}